"""
操作 | 枚举类
"""

from utils.enum_utils.base import StringEnum


class POOperation(StringEnum):
    """ PO 操作类型 | 枚举类 """

    CREATE = "CREATE", "创建"
    UPDATE = "UPDATE", "更新"
    DELETE = "DELETE", "删除"


class ModelOperation(StringEnum):
    """ 模型操作类型 | 枚举类 """

    # 通用
    CREATE = "CREATE", "创建"
    UPDATE = "UPDATE", "更新"
    DELETE = "DELETE", "删除"
    RECOVER = "RECOVER", "恢复"
    DETAIL = "DETAIL", "查看详情"
    LIST = "LIST", "查看列表"

    # 文件 - FilePO
    UPLOAD = "UPLOAD", "上传"
    DOWNLOAD = "DOWNLOAD", "下载"
    VIEW = "VIEW", "预览"

    # 进度 - ProcessPO
    TERMINATE = "TERMINATE", "终止"

    # 用户 - UserPO
    CHANGE_PASSWORD = "CHANGE_PASSWORD", "修改密码"
    LOGIN = "LOGIN", "登录"
    REGISTER = "REGISTER", "注册"

    # 其他
    CHECK = "CHECK", "检查"
